package com.greate.shiro.springbootshirodemo.config;

import lombok.*;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author Administrator
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
public class JwtToken implements AuthenticationToken {

	private String token;

	@Override
	public Object getPrincipal() {
		return this.token;
	}

	@Override
	public Object getCredentials() {
		return this.token;
	}
}
